package com.goa.mapper;

import com.goa.entity.DeviceBase;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

@Repository
public interface DeviceBaseMapper {
    //根据注册包查询到是否有该设备
    DeviceBase queryDeviceByBeat(@Param("registrationBeat") String registrationBeat);

    //根据id修改设备状态/ip/开始时间
    Boolean updateDeviceStatusAndIpById(@Param("deviceBase") DeviceBase deviceBase);

    //根据id查询设备信息
    DeviceBase queryDeviceById(@Param("deviceId") String deviceId);
}
